package com.moju.servlet;

import javax.servlet.*;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.*;
import java.io.IOException;


public class BookServlet extends HttpServlet {

    //在tomcat服务器 启动的时候，就要预加载数据

    @Override
    public void init(ServletConfig config) throws ServletException {



    }

    @Override
    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        System.out.println("I am BookServlet ======================================");

    }

    @Override
    protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        doGet(request, response);
    }
}
